/*
 * CommandCodes.hpp
 *
 *  Created on: 15 mei 2013
 *      Author: maarten
 */

#ifndef COMMANDCODES_HPP_
#define COMMANDCODES_HPP_

#define BUFFERSIZE 1100
#define FILESPLIT 1000
#define SPLITTOKEN ";"
#define SPLITTOKENC ';'
#define SUBSPLITTOKENC ','

#define REQUEST_LOGON 1
#define RESPONSE_LOGON 101

#define REQUEST_OVERVIEW 11
#define RESPONSE_OVERVIEW 111

#define REQUEST_UPLOAD_PREPARE 31
#define RESPONSE_UPLOAD_PREPARE 131

#define REQUEST_UPLOAD_TRANSFER 32
#define RESPONSE_UPLOAD_TRANSFER 132

#define REQUEST_UPLOAD_COMPLETE 33
#define RESPONSE_UPLOAD_COMPLETE 133

#define REQUEST_DOWNLOAD_PREPARE 41
#define RESPONSE_DOWNLOAD_PREPARE 141

#define REQUEST_DOWNLOAD_TRANSFER 42
#define RESPONSE_DOWNLOAD_TRANSFER 142
#define RESPONSE_DOWNLOAD_TRANSFERCOMPLETE 143

#define REQUEST_DELETE_FILE 51
#define RESPONSE_DELETE_FILE 151

#define REQUEST_RENAME_FILE 61
#define RESPONSE_RENAME_FILE 161

#define REQUEST_ADD_FOLDER 71
#define RESPONSE_ADD_FOLDER 171

#define ERROR_UNKOWN_MESSAGE 255

#define ERROR_LOGIN_FAIL 201
#define ERROR_LOGIN_NOTIDENTIFIED 202

#define ERROR_FILE_NOTPERMITTED 203
#define ERROR_FILE_FAIL 204
#define ERROR_FILE_ISOPEN 205
#define ERROR_FILE_NOFILE 206
#define ERROR_FILE_EXTENTION 207
#define ERROR_FILE_SIZE 208

#endif /* COMMANDCODES_HPP_ */
